{\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410
{\fonttbl\f0\fnil\fcharset77 Monaco;}
{\colortbl;\red255\green255\blue255;\red191\green0\blue0;\red0\green0\blue191;\red0\green115\blue0;
}
\deftab560
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardeftab560\ql\qnatural\pardirnatural

\f0\fs18 \cf0 \
\
\cf2 // reset test.\cf0 \
(\
\{\
	\cf3 var\cf0  a, trig = \cf3 MouseButton\cf0 .kr > 0.5;\
	a = \cf3 Dfsm\cf0 ([[0], \cf3 Dseq\cf0 ([-2, -3], \cf3 inf\cf0 ), [1, 7], \cf3 Dseq\cf0 ([0.1, 0.2], \cf3 inf\cf0 ), [0, 1], \cf3 Dseq\cf0 ([900], \cf3 inf\cf0 )]);\
	\cf3 Demand\cf0 .kr(trig, 0, a); \cf2 // should end after final state.\cf0 \
	\cf3 Silent\cf0 .ar;\
\}.play\
);\
\
\
\cf2 // reset test.\cf0 \
(\
\{\
	\cf3 var\cf0  a, trig = ;\
	a = \cf3 Dfsm\cf0 ([[0], \cf3 Dseq\cf0 ([-2, -3], \cf3 inf\cf0 ), [1, 7], \cf3 Dseq\cf0 ([0.1, 0.2], \cf3 inf\cf0 ), [0, 1], \cf3 Dseq\cf0 ([900], \cf3 inf\cf0 )]);\
	\cf3 Demand\cf0 .kr(trig, \cf3 MouseButton\cf0 .kr > 0.5, \cf3 Dseq\cf0 ([a], \cf3 inf\cf0 ));\
	\cf3 Silent\cf0 .ar;\
\}.play\
);\
\
\cf2 // embedding test\cf0 \
(\
a = \{ \cf3 |t_reset|\cf0 \
	\cf3 var\cf0  trig = \cf3 MouseButton\cf0 .kr > 0.5;\
	a = \cf3 Dfsm\cf0 ([[0], \cf3 Dseq\cf0 ([-2, -3, -4], \cf3 inf\cf0 ), [7], \cf3 Dseq\cf0 ([0.1, 0.2], 1), [0, 1], \cf3 Dseq\cf0 ([900, 90], \cf3 inf\cf0 )],\
		2);\
	\cf3 Demand\cf0 .kr(trig, t_reset, a);\
	\cf3 Silent\cf0 .ar;\
\}.play\
);\
\
a.set(\cf4 \\t_reset\cf0 , 1);\
\
\
}